#!/bin/bash

ramfs_path=./

if [ $# -eq 1 ]; then
	if [ -d $1 ]; then
		ramfs_path=$1
	fi
elif [ $# -gt 1 ]; then
	echo "Too many parameters"
	exit
fi


umount ${ramfs_path}/dev/pts/
umount ${ramfs_path}/dev/
umount ${ramfs_path}/sys/
umount ${ramfs_path}/proc/
